# -*- coding:utf-8 -*-
# --author： jingfeng 
# time: 2019/8/6




from selenium import webdriver
import time

# option = webdriver.ChromeOptions()
# option.add_experimental_option('excludeSwitches',['enable-automation'])
browser = webdriver.Chrome()


browser.get('https://www.taobao.com')

# 查看发现淘宝检测  webdriver =true，执行这个恢复默认，但每次打开新页面都得执行
js = r"Object.defineProperty(navigator, 'webdriver', {get: () => undefined,});"
browser.execute_script(js)
time.sleep(2222222222)